package family

//常量
const (
	income   = "收入"
	outcome  = "支出"
	usersDir = "users" //用户信息相对路径
)

// 转换菜单
var trans_menu []string = []string{"儿子", "女儿", "父亲", "母亲", "爷爷", "奶奶",
	"外公", "外婆", "哥哥", "弟弟", "姐姐", "妹妹", "返回上级菜单",
}

type record struct { //交易记录
	trans_type string  //交易类型
	balance    float64 //交易后的余额
	money      float64 //收入/支出金额
	note       string  //备注
}

// 用户信息
type user struct {
	name    string
	pwd     string
	balance float64 //当前用户余额
	records []record
}

// 系统结构体
type Family struct {
	uid   int //当前用户索引
	users []user
}
